home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Micro Dingo 39
/
Micro_Dingo_39_CD1.mdx
/
Delires
/
Hentai
/
sim.swf
/
scripts
/
DefineButton2_233
/
BUTTONCONDACTION on(release, keyPress w).as
Wrap
Text File
|
2002-05-21
|
874b
|
48 lines
on(release, keyPress "w"){
if(hp >= 20)
{
hp -= 20;
ratio = (0.5 * ch + 0.4 * st + 0.1 * kn) / 100;
ship += 10 * ratio;
if(state == 0)
{
gotoAndStop(326);
}
else if(state == 1)
{
gotoAndStop(480);
}
else if(state == 2)
{
luck = random(14);
gotoAndStop(631);
}
else if(state == 3)
{
luck = random(14);
gotoAndStop(797);
}
else if(state == 4)
{
luck = random(100);
if(luck >= 95)
{
state = 9;
gotoAndStop(1131);
}
else
{
gotoAndStop(964);
}
}
else if(state == 9)
{
gotoAndStop(1131);
}
}
else
{
gotoAndStop(127);
}
}